package com.lys.emsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("classroom")
public class Classroom {
    @TableId(type = IdType.AUTO)
    private long id;

    private String no;

    private int majorId;

    private boolean status;

    @TableField(exist = false)
    private String schoolName;

    @TableField(exist = false)
    private String collegeName;

    @TableField(exist = false)
    private String majorName;

}
